import xml.dom.minidom
from xml.dom.minidom import Node
from sendable import *
from interpreter_sender import *

class ClientSender(Sendable):
	def __init__(self, client):
		self.client = client
	def send(self):
		doc = xml.dom.minidom.Document()
		node = doc.createElement("client")
		node.setAttribute("name", self.client.name)
		for i in self.client.interpreters:
			tmp = InterpreterSender(i)
			node.appendChild(tmp.send())
		return node
